<?php

class Statistic extends Portlet {

    protected function renderContent() {

        $user_cout = User::getOnlineCount();
        $user_count_all = User::model()->cache(60)->count();
        $service_count = Service::model()->cache(60)->count();
        $suggest_count = Suggest::model()->cache(60)->count();

        $this->render("statistic", array(
            "user_count" => $user_cout,
            "user_count_all" => $user_count_all,
            "service_count" => $service_count,
            "suggest_count" => $suggest_count
        ));
    }
}
